#pragma once
/**
 * Server class
 * 
 */
struct fcgi_server_t
    : private boost::noncopyable 
{
    fcgi_server_t(int port=10001, std::ostream& logger = std::cout);
    int run_sync();
    void stop();
private:
   std::ostream& logger_;
   int port_;
   bool stop_;
};

typedef boost::shared_ptr<fcgi_server_t> fcgi_server_ptr;


